filechooserentry: Redo completion popup trigger
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Nov 2011 01:16:43 +0000 (02:16 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 19:09:13 +0000 (20:09 +0100)
commit93263dcd33cde6e8a8706482b159206c6121a196
treed318a2352232bec3140f55a14df93a1b412e9824
parent132c42ccbd5deab5b24d28e23f387c7966d80d35
filechooserentry: Redo completion popup trigger

Use dispatch_properties_changed() instead of GtkEditable to watch for
changes to the to-be-completed text. This is necessary because various
functions in GtkEntry don't use the interface vfuncs and one only
becomes aware of them via notifications. I'm not sure this is intended
behavior, but it's how it works today.
Also, use the same code for triggering in all situations.

What the code does is this: It looks at the part of the text in front of
the cursor (or selection) and completes for it. Once the directory has
been enumerated, inline completion is activated. Note that popping up of
the completion popup is completely handled by GtkEntry.
gtk/gtkfilechooserentry.c